iptables -F
iptables -X
iptables -A INPUT -i lo -j ACCEPT 
iptables -A INPUT -p tcp -m multiport --port 22,8080 -j ACCEPT

iptables -A INPUT -s 122.71.225.0/24 -p tcp --dport 1080 -j ACCEPT
iptables -A INPUT -s 122.71.225.0/24 -p tcp --dport 3128 -j ACCEPT

#unicom output
iptables -A INPUT -s 111.206.6.0/24 -p tcp --dport 1080 -j ACCEPT
iptables -A INPUT -s 111.206.6.0/24 -p tcp --dport 3128 -j ACCEPT

#dianxinos
iptables -A INPUT -s 223.71.209.134/32 -p tcp --dport 1080 -j ACCEPT
#iptables -A INPUT -s 223.71.209.134/32 -p tcp --dport 3128 -j ACCEPT

iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT  
iptables -P INPUT DROP  
